<%--
  Created by IntelliJ IDEA.
  User: cmy
  Date: 2019/2/20
  Time: 9:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>cmy的图片</title>
    <script src="/js/jquery-1.4.4.min.js"></script>
    <script type="text/javascript">
        $(function () {
            $.getJSON('/main/ajax',function (data) {
                alert('姓名:'+data.name+",年龄:"+data.age);
            })
        })   
    </script>
</head>
<body>
</body>
</html>
